import request from "@/utils/request.ts";
import type { loginForm, loginResponseData, userInfo } from "./type.ts";

const loginAPI = (data: loginForm) => request.post<any, loginResponseData>('/admin/acl/index/login', data);

const getUserInfoAPI = () => request.get<any,userInfo> ('/admin/acl/index/info');
const logoutAPI = () => request.post('/admin/acl/index/logout');

export { loginAPI,getUserInfoAPI,logoutAPI };
